Repository navigation
Documentation and minor fixes on column names in reports - #1569
jhmigueles wants to merge 12 commits into
Conversation
…stated mg when the plot showed g)
…ccumulated ML5AD columns with the current metric, so earlier metrics were labelled with the last metric and later metrics got a ".1" suffix (e.g. L5hr.1_MAD_mg_0-24h_fullRecording). Names are now built only from the columns added for each metric.
…sed to generate column name "_fullRecording" because output_avday$output_avday returns NULL as it does not exist. As a consequence, metrics named with this line (including ig gradient, intercept, and rsquared) replaced each other and only the first survived (duplicated names are later removed in lines 364:371)
…dence (part2 event reports). "acc" in the name did not indicate the acceleration metric, which produced duplicated columns (.1, .2) when more than 1 metric was calculated. Names now include the metric and unit and values are expressed in mg.
…was reset to 10, resulting in overwriting of earlier columns (only Fitbit data).
… (segment shorter than winhr) instead of being skipped. Skipping them shifted the subsequent columns of that day, producing duplicated column names and misaligned values in part2_dayeventsummary and part2_daytypesummary.
… tests and a maintainer script (dev-functions/reviewDictionaries.R) to review the definitions; and documentation in the GGIRoutput vignette. PR template reminds to add definitions for new report columns. #1568
…tionary to avoid R CMD check NOTE. #1568
vincentvanhees
left a comment
There was a problem hiding this comment.
Thanks Jairo, I have not had time to dive into every line of code... I suppose you used a coding agent to check a lot of the syntax. However, I found some high level issues, and it would be great if you could have a look at them.
|
|
||
| - Visual reports: Acceleration in the data quality png (results/QC/plots_part2) is now plotted in mg, consistent with its y-axis label. #1568 | ||
|
|
||
| - Reports, data dictionaries: |
There was a problem hiding this comment.
We had an open issue for documenting the milestone data #752
I think this PR also fixes that? If yes, please tag that issue here in the change log.
| expect_equal(daysummary$ExtFunEvent_L2_cad_mean_ENMO_mg_1234hrs, 210041.7, tolerance = 0.05) | ||
| expect_equal(daysummary$ExtFunEvent_M2hr_cad_1234hrs, 0) | ||
| expect_equal(daysummary$ExtFunEvent_M2_cad_meancad_1234hrs, 36.26251, tolerance = 0.05) | ||
| expect_equal(daysummary$ExtFunEvent_M2_cad_mean_ENMO_mg_1234hrs, 60041.67, tolerance = 0.01) |
There was a problem hiding this comment.
Is this change needed? Why are the columns no longer numeric? If they are not numeric then that indicates a formatting problem in the output and this should be fixed in the code and not in a test
| %\VignetteEngine{knitr::rmarkdown} | ||
| --- | ||
|
|
||
| **NOTE: If you are viewing this page via CRAN note that the main GGIR documentation has been migrated to the [GGIR GitHub pages](https://wadpac.github.io/GGIR/).** |
There was a problem hiding this comment.
Please make sure this page is not visible one CRAN, and only visible on GitHub pages. I think we do that via the .RBuildignore file. My intention has been to not put any vignette on CRAN that has not been on CRAN before, because I do not want bother CRAN with all these large vignettes while we display them on github pages. Only the old vignettes that were first released on CRAN will remain there as well as on GitHub pages. In that way we do not need this sentence.
|
|
||
| **NOTE: If you are viewing this page via CRAN note that the main GGIR documentation has been migrated to the [GGIR GitHub pages](https://wadpac.github.io/GGIR/).** | ||
|
|
||
| # Introduction |
There was a problem hiding this comment.
A lot of the introduction of milestone data overlaps with https://wadpac.github.io/GGIR/articles/chapter2_Pipeline.html#milestone-data. Please reference that part of the documentation and try to minimize overlap. Some kind of intro is fine, but the less documentation we need to maintain the better :)
| %\VignetteEngine{knitr::rmarkdown} | ||
| --- | ||
|
|
||
| **NOTE: If you are viewing this page via CRAN note that the main GGIR documentation has been migrated to the [GGIR GitHub pages](https://wadpac.github.io/GGIR/).** |
There was a problem hiding this comment.
Same comment as above, this page should not be visible on CRAN. Make sure it is masked from CRAN like all other vignettes that were first released on github pages.
Fixes #1568 => this PR improves the documentation of the GGIR output, adds 2 new vignettes to document milestone data and visual reports, and fixes some small bugs on column names in the reports found while writing it.
Documentation
results/variableDictionaryfor parts 2, 4, 6, and for external function event and type reports.MilestoneData.RmdandVisualReports.Rmd.dev-functions/reviewDictionaries.Rruns GGIR on simulated data with most outputs switched on and lists the variables without a definition, so maintainers can easily review the definitions.Minor bug fixes
_fullRecording, so they overwrote each other.part2_dayeventsummaryandpart2_daytypesummary. They are now stored asNA.part2_summary.Checklist before merging:
inst/NEWS.Rdwith a user-readable summary. Please, include references to relevant issues or PR discussions.DESCRIPTION,zenodo.json, andinst/CITATIONfiles.If NEW GGIR parameter(s) were added then these NEW parameter(s) are:
man/GGIR.RdR/load_params.RR/check_params.Rvignettes/GGIRParameters.Rmdwith references to the GGIR parts the parameter is used in.If GGIR parameter(s) were deprecated these parameter(s) are:
man/GGIR.RdR/load_params.RR/check_params.Rvignettes/GGIRParameters.RmdR/extract_params.Rwith deprecated parameters such that these do not produce warnings when found in old config.csv files.